﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace STF.Blog.Model.Migrations
{
    public partial class b : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropForeignKey(
                name: "FK_ArticleCategoryOwnership_CateGory_Bid",
                table: "ArticleCategoryOwnership");

            migrationBuilder.AddForeignKey(
                name: "FK_ArticleCategoryOwnership_Blog_Bid",
                table: "ArticleCategoryOwnership",
                column: "Bid",
                principalTable: "Blog",
                principalColumn: "Id",
                onDelete: ReferentialAction.Cascade);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropForeignKey(
                name: "FK_ArticleCategoryOwnership_Blog_Bid",
                table: "ArticleCategoryOwnership");

            migrationBuilder.AddForeignKey(
                name: "FK_ArticleCategoryOwnership_CateGory_Bid",
                table: "ArticleCategoryOwnership",
                column: "Bid",
                principalTable: "CateGory",
                principalColumn: "Id",
                onDelete: ReferentialAction.Cascade);
        }
    }
}
